package com.yf.exam.modules.user.exam.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yf.exam.modules.user.exam.dto.UserExamDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 考试记录数据传输类
 * </p>
 *
 * @author 聪明笨狗
 * @since 2020-09-21 15:13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "考试记录", description = "考试记录")
public class UserExamRespDTO extends UserExamDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试名称", required = true)
    private String title;

    @ApiModelProperty(value = "人员名称", required = true)
    private String realName;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "进场时间", required = true)
    private Date entryTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "离场时间", required = true)
    private Date leaveTime;
}
